package com.yz.newspaper.utils;


public enum ResultCode {
    /**
     * 默认成功状态码
     * 默认失败状态码
     */
    SUCCESS(1, "成功"),
    ERROR(0, "失败"),
    /**
     * 令牌验证状态码
     */
    JWT_STATUS(1001, "登录验证失败"),
    /**
     * 用户状态码错误
     */
    USER_NOT_LOGIN(2001, "用户未登录"),
    USER_LOGIN_ERROR(2002, "用户名或密码错误"),
    USER_LOGIN_LIMIT(2003, "非管理员账户");

    private final Integer code;
    private final String message;

    private ResultCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return this.code;
    }

    public String getMessage() {
        return this.message;
    }

    ;


}
